package org.example.model.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户积分兑换规则
 */
@Data
@TableName("point_rule")
@Getter
@Setter
public class Rule implements Serializable {
    @TableId(value = "point_rule_id", type = IdType.AUTO)
    private Integer pkId;
    @TableField("point_rule_name")
    private String name;
    private Integer pointNum;
    private String introduce;// 新增rule介绍
    private Short isReset;
    private Long resetTime;//修改重置时间，以小时为单位
    private LocalDateTime beforeResetTime;//新增上一次重置时间
    @TableField("is_reset_exchange")
    private Short repeat;
}
